s3:lib: Change file_modtime() to return an error code and a struct timespec.