Fix a regression introduced by 6285a057a248e65301def835dfc5971e6df29a39: Use the proper value to calculate whenever to do a near call on amd64. Fixes #12541.