chrootcache: add locking around btrfs snapshot