f2fs: fix to avoid potential deadlock