Mutex feature added

Mutex feature added, now user can allocate a block mutual exclusion in
order to sincronize shared resources.

Core modification in order to ensure multitasking which in some cases
fails.

Flags bugs correction in multiple flags use case.

**Mutex need to run more test case.