FIX: with mutex sometime we can enqueue a NULL pointer in task list

Signed-off-by: Giuseppe Monteleone <info@ing-monteleone.com>