Added vlang's own barrier (implements reset) and use it.