A Wigan library will close its doors so repairs can be carried out to its roof.