[sr-dev] git:master:253d35c8: core: add helper function for flag reset