prevent race condition on msg.Attempts

ready for review.  

Benchmarks:
before:  http://pastebin.com/znPkN8x3
after: http://pastebin.com/RvJZdHRV