[Git][openldap/openldap][master] ITS#10413 Prepare cookie just before we actually send it