Fixed 20613 - moved pickle loads/dumps outside with self._lock.reader()/...

...writer() blocks