btrfs: fix race between writes to swap files and scrub