The best way to lock in a gain on an appreciated CC position depends on what the underlying (XYZ) does, going forward. Yeh I know, kind of a Captain Obvious statement.
What "might" be best depends on several factors. How far OTM was the short call initially? How far now? How much has XYZ...