Move reboot_pending? method to windows_helper

Move method reboot_pending? from reboot_handler to windows_helper.
This allows thirdparty providers to use the detection code.