[SSSD] [sssd PR#974][-Ready to push] util/server: Fix the timing to close() the PID file