journalctl: Unify boot id lookup into common function get_boots