Enabled multithreading capabilities for bluetooth network connections
via the use of locks(mutexes).