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