block: Introduce path_has_protocol() function