Add flock support

Add support for file locking with ```flock```

should resolve #24 

note: blocking lock is not supported but I'm not sure it makes sense anyway since only the current thread can access files in the VirtualFileSystem