lib: add monitor_cond_change API to C IDL lib