[compat] add compat_etree_register_namespace