Fix regresssion due to untimed flock in wait().