Normalize loops in server threads that wait for wiredtiger_open to complete (wait for 1ms, it shouldn't take long, and any longer slows down fast open/close pairs such as the test suite).
Fix a race when shutting down the log archive thread: wait until the thread exits before closing the log.