Handle the commit protocol better in QtCompositor

Change-Id: I06477ee97ce95dcdb26ca4fae3cf7eeb7f1a2ace
Reviewed-by: Andy Nichols <andy.nichols@digia.com>