autofs: don't get stuck in a loop if vfs_write() returns an error