The hwt(4) thread-mode hooks call the hwt_backend_configure method
to activate a thread's tracing context on switch-in. Unfortunately,
this currently resets the tracing buffer on both the PT and SPE backends
since they unconditionally re-initialize their tracing contexts on
every hwt_backend_configure call.
Fix this by refactoring their respective configuration methods to detect
whether a tracing context was already initialized and avoid re-initializtion.