Ensure the lock wraps the tracer map access, not just tracer initialization

Closes #1