A light scalar explanation of $(g-2)_μ$ and the KOTO anomaly