sync from MirBSD: fix over-zealous optimisation that was bogus