Do not sleep for tiny periods, or hang trying to sleep for zero. Bug 1426