change task_stop to use "task_must_stop" as a nice stop, instead of killing the task.

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>
implement real mutex for Unix

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>