Return the thread created in consume_in_thread

Returns the thread created so that the caller can manage it.

Change-Id: If9685a8ddc95b5db179ff8a10ec0ca5fd62ffbed
Closes-Bug: #1293650
Merge "Return the thread created in consume_in_thread"