Lock presentation only with at least one output being enabled
There is a segmentation fault with presentation lock when no output is enabled. Check for that and omit locking otherwise.
Also an autotest failed here what was likely because of a race in QSignalSpy.