"Synchronizing data access with read/write locks"  - my own fixes