remove trailing spaces
cleanup and bug fix

The mutex can only be released by the owner and it is available in
initial state. Fix the profile code and cleanup the unnecessary
Mutex_Control.
Merge pull request #1 from grissiom/test_schedule

Test schedule