Btrfs: add permission checks to the ioctls