[PATCH 19/66] btrfs: Move btrfs_check_chunk_valid() to tree-check.[ch] and export it