btrfs: add common checksum type validation