Optimize KisProcessingCommand
We should release the visitor as soon as it finished execution. This change is rather dangerous, so we should better keep it unmerged to stable until 4.2.8 or even 4.3