Fix race condition in AbstractPeer. (Finally) Closes #3