Fix wait_pull_front & wait_push_back in sync_bounded_queue.

Adds single and multi-threaded tests for the above and updates some
other tests.
Fixes typo in docs.