Implement WorkQueue::GetThreadId.

Refs #4758
Implement work queue support for db_ido_mysql.

Refs #4758
Merge branch 'feature/ido-workqueue-4758' into next

Fixes #4758