[filesystem] Tiny optimization of List method
[immemory] Get rid of index in List method
[inmemory] Implement Set as map of empty structs, as struct{} takes

no memory. Also it looks more clear.
[inmemory] Make inmemory thread safe
Merge pull request #2 from noxiouz/fix

Tiny fixes in inmemory and filesystem driver