Improve thread safety

* Use mutex locks for IO and authorization operations  inside
RDIWDeamonMaster;
* Turn the mutex lock from rd_inject_library() into a global variable;
Merge branch 'fix-thread-safety' into develop
Fix a compiler warning about shadowing local variable
Bump version to 0.1.0
Release 0.1.0: Improved thread safety