make sleep timer's shutdown method less likely to hold thread (rebased from dev_5_0)

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