readLock to prevent certain crashes (contribution by Jörg Bliesener) v0.4, unreleased