Fix the logic for waking the LSM worker thread: do it the first time we notice a switch is needed.