ITS#10060 Return tag of last message if all=LDAP_MSG_ALL
ITS#10060 Try harder to find a finished operation with msgid=LDAP_RES_ANY