fix CAS loop for Akka mailboxes