Don't apply options change if scanning is in progress
As this could damage the resulting image. Now related functions return -1 to indicate this case.
Differential Revision: https://phabricator.kde.org/D17510