Sleep for a while if necessary to allow disks to wake up (#1916).