mali: Fix compile warnings

Signed-off-by: cocafe <cocafehj@gmail.com>
mali: fix error in boost logic

it sometimes caused mali boost to lock up at high freq regardless of
the load
mali: add mutex locking to boost logic