BUG-5280: synchronize access to local histories