Use an atomic variable for AsyncBlocks

_Depends on #5._