Covering peeling lead paint with joint compound?
Any time the paint is pealing it will only make things worse by putting more on top unless covering with something like sheetrock as suggested. I would not use joint compound it will probably cause the loose paint to flake off. Making a divot because of the old paint and joint compound thickness.