Adds multithread tests

 - Adds a multithread test to libnanomsg
 - Adds a multithread test to nanomsg.rs