f2fs: enhance alloc_nid and build_free_nids flows