Fixes bug in waiting for sysprep completion

wait_for_boot_completion() needs to be called before get_metadata_service()
as the metadata service constructor can fail due to Windows APIs not yet
available.