prepared ThreadLocal for queries
added forCurrentThread for queries, enforce thread check on queries,