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.
Merge pull request #2 from enovance/addLockingToFakeStorage

add locking to fake storage