Limit scheduler sleeping when master backend shutdown is enabled.

The longer sleeps added in a2eb9312 could prevent the pending shutdown
events from being sent.