Move blocking queue template implementation to header.
Silence assert_death warnings.
Refactor.