base: MPU mutex reduce code size

Reduce code size of MPU mutex

This patch reduces code size of mutex on MPU side by simplifying
algorithm and sharing code.

Signed-off-by: Kazunori Asayama <asayama@sm.sony.co.jp>
Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
1 file changed