Requested in #1727. There should be a template parameter to opt out of the locking when the user knows all interaction will be single threaded.