9b1ad54 Ticket 49649 - Use reentrant crypt_r()

Authored and Committed by mreynolds a year ago
    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!)
    
    (cherry picked from commit 530a2db1776fca545436cbac2987f6b86f6c7048)