Implement WorkQueue::GetThreadId.

Refs #4758
Implement work queue support for db_ido_mysql.

Refs #4758