Fixed a bug where adding a guide may create two cmds
When KisGuidesManager's setUnitType() is called when the mouse is
dragged onto the canvas, slotUploadConfigToDocument() will upload
the guides config that includes the newly created guide, resulting
one additional unexpected "Add Guides" command. The current
implementation will guarantee one undo command is created only
after the release of the mouse/finger/pen.