Fix "build graph locking" autotest for Qt < 5.1.

The locking is not implemented there, so we actually expect a failure in
that case.

Change-Id: Ie70aa2318915223b968f78015a796dcd390fb1c5
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>