Meson-exchange enhancement in first-forbidden $\beta$ transitions: The case of $^{50}$K and $^{38}$Ca