dfc: Add missing dict ref/unref