Ensure that there are switch work units for LSM trees that need them.

Two cases where switches may be needed are:
    * Failed switches that still have NEED_SWITCH set
    * If a thread is blocked waiting for a switch.

References #1305