provider: Add ref counting debug