A Gleason–Kahane–Żelazko theorem for reproducing kernel Hilbert spaces