Implement thread safety for records.

3 files changed