btrfs: add and use helper to get lowest sequence number for the tree mod log