Lock free implementations of MessageQueue and SleeperList

Rebase and update of #9710