[SSSD] [PATCHES] Fix more assorted bugs found by Coverity