database shutdown can fail opening new data handles
WT-4832 Change ordering on shutdown to close LSM and async threads earlier
WT-5145 Fix the race condition in accessing pinned_timestamp and connection state