checkout: check_linked_checkout: simplify symref parsing