improve SeafileResource.getLastModified()

For objects of v1 repo we can get the mtime directly from the dirent.