make sleep timer's shutdown method less likely to hold thread

Code inspection probably suffices here: this is just about making it more likely that the JVM will schedule another thread. (`Thread.yield()` really may just do nothing whatsoever.) The code is executed when the server is shutting down.
--rebased-from #2720