After WT-3097, we only use WT_CONN_SERVER_RUN in two places. It would be better to replace the use in session_api.c with a check of WT_CONN_CLOSING and to introduce an LSM-specific run flag that controls shutdown of LSM threads.
Using module-specific run flags gives us the flexibility to shut down and restart individual modules plus control order of thread shutdown during connection close.