Such as on a stern gland

A good way to shift a castellated nut is with a screwdriver and a sharp tap from a hammer. Does the job!