https://bugs.openldap.org/show_bug.cgi?id=10095
--- Comment #3 from Howard Chu hyc@openldap.org --- We can add a flag to the lockfile for "mutex is valid" but we still wouldn't have a good way to resolve which of p1 or p2 should do the initialization then.
And p0 has no way to know that other processes are waiting to open the env, in which case it could just skip the mutex_destroy.