[Issue 9389] New: Improve the way how libldap handles interruption signal while in tls_read