Bug 891644 - Make telemetry recorder threadsafe and update tests.