Call waitForDone after starting a background job from a script
And copy the relevant documentation for locking/waiting methods from KisImage.
BUG:401497