st: add ST_FLUSH_WAIT to st_context_flush()