Fixed a bug which made the last (shallow) read lock simply overwrite the previous one (instead of adding an extra lock)