Use lightweight simple mutexes for locking - no need for reentrancy

Signed-off-by: Ross Allan <rallanpcl@gmail.com>