Use read/write lock fo map