ITS#9338 slapd: fix write waiter resuming
Fix the write waiter to resume executing any pending ops after the socket becomes writable again. Also fix the syncrepl consumer to use a fresh connection on its fallback refreshes instead of reusing the existing connection, to avoid problems with a broken write waiter. Added a custom "backlog" feature in ldapsearch.c to assist in testing.