1. Fix the bug of critical resourses for mutex, message queue and semaphore.
2. Code indent and clean.
3. Add file copyright.

Signed-off-by: Shanjin Yang <sjyang@credosemi.com>
Merge branch 'master' of https://github.com/yangshanjin/YSJ_OS