Fixed ABOUT TO SLEEP bibsched bug.
When a task was sent the "sleep" signal, its status switched to "ABOUT TO SLEEP".
Because of a bug this was considered as ~already-sleeping status, thus the next task
to be run was already started. This has been fixed.