minor flag2 update

* updated test: measure and printout sync sets and waits
* updated api: waiting = false was moved out of the sync block (btw can volatile write be reordered with notify?)