API: libcrmcommon: add pcmk_resource_is_managed()
This is intended to replace direct access to rsc->flags