Fix for issue #8, mutex rclock working

Apparently the threads had not been initialized
and several calls require them to be so. This fix
applies the necessary changes for NuttX to init
the threads.