thread_id api call added

to get mysql connection thread id