Fix missing lock on room history, remove some list copying