[GHC] #13654: Optimize casMutVar# for single-threaded runtime