Add a context class for tracking what a thread is doing. This is the
first step towards generic instrumentation for frwlock contention.