filebackend: optimize the chmod() calls in FSFileBackend