Resolves matrix multiply hang with locks.

Added pthread_lock/unlock calls to libdsmu.c & rpc.c,
allowing the condition variable there to avoid race conditions.
Closes #9.