Is it safe to ground/earth an extension cord with the radiator?
This seems extremely dangerous.  If the plumbing for the radiators is not grounded, and a fault occurs. You could potentially electrify the entire plumbing system.

Worst case scenario. The heating plumbing is electrically connected to the water plumbing, you electrify the plumbing, and everybody in the building dies when they wash their hands.