Read the commit message for more info.
This was causing troubles when I wanted the pam responder to close
connection to a client immediately, right after a request is finished.
This code has been in SSSD for years. Simo, as you are the original
author, can you review it please?