It is not possible. Please ensure that your domain Whois setting is unlocked before transferring that domain.
If you want to transfer your domain to Z.com, please set up the Whois information setting from the management screen after domain transfer is completed.