This fix simplifies the code to drop the pthread and mutexs which should
address some of the buffering issues we were seeing in some test case
failures.
(From OE-Core rev: bffa6d381d7ea0a6aad19d61cd973c82aadef070)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>