common/rc: fix check for disabled kmemleak