[PATCH v2 4/4 for stable 6.1] btrfs: fix race between reading a directory and adding entries to it