Segfault when calling (Cancelable)Lock.unlock?