A temporary ossia in an instrumental part may be printed using a separate, short staff. A simpler solution is also given: instantiate a full staff, and let RemoveEmptyStaffContext take out the unused parts.
RemoveEmptyStaffContext