added thread safe get and release methods
Added tests for blocking queue