A couple message handling fixes

Don't wait for threads to finish in br::context::finalize, this will typically
be called from a thread-pool thread, so this is a self-blocking wait.

Create the mutex in br::context::messageHandler in recursive mode, this allows
qDebugs inside the message handler to work.