Fix a compilation error that occurs if Valgrind is not enabled. This regression was caused by b2c0d632 (Add witness, a simple online locking validator.).