Bow‐shock‐associated proton heating in the upstream solar wind