Workaround for atomic implementations incorrectly taking arguments by ref.