Generally, there are prescribed rules to be followed during a diksha period; this period has to be observed like a vrata; many diksha-s prescribed for occasions like upanayanam, vivaha, yagadiksha, etc.; during these periods it is prescribed that men should not shave.
Similarly, he is not allowed to shave during pregnancy as it is observed like a vratam.