inherit from FileSystem, it's actually cleaner this way
revert to old node test, with some slight mods
add isDirectory to DirInode
making the rest of the tests friendly for read-only FSes
adding sync guard to fs-stat test
not sure which ApiError to use exactly, but this looks better
hackfix for unfortunate race condition