Fix golang cond locking