[PATCH v2 6/6] armv8: Fix and simplify branch_if_master/branch_if_slave