[SSSD] [sssd PR#5830][+Tests] Tests: Port the old ns_account_lock.sh script to pytest