protocols: fix contains_interface() implementation in several backends