Fix Mtx Api and Relevant HAL Part

Tachyos supports multi-thread operation. it’s not as ‘concurrent’ as
counter part on multi core based system though. thread can be preempted
by another in critical section
Merge pull request #3 from fritzprix/tachyos_ansi_clib

Fix Mtx Api and Relevant HAL Part