Ticket 49649 - Use reentrant crypt_r()
Bug Description: We were previously using crypt() which is not
thread safe and reuired a lock. Using pwdhash cli
tool caused a crash because the lock was not created
when invoked by the cli.
Fix Description: Use crypt_r() instead which does not require any locking.
https://pagure.io/389-ds-base/issue/49649
Reviewed by: Simon(Thanks!)