Ahead of the spectral sitcom's final episode, the co-creator and star explains why – despite his reservations – it's the right time to end Ghosts