add locking to fake storage

This commit protect the dictionnary paths of the fake storage
by adding lock statement. It also returns a copy of that dictionnary
instead of the real reference.