lib: fix data race in rhashtable_rehash_one