https://bugs.openldap.org/show_bug.cgi?id=9378
--- Comment #22 from stefan.bruens@rwth-aachen.de --- The lockfile removal comes from a time when the robust mutexes where not available, or at least not widely.
Of course just deleting the lockfile is wrong, but the Caveats documenting the correct approach for dealing with stale locks were added at about the same time (and there may have been some delay before these documentations were publicly visible, and known).
As this is no longer the case, and we can almost assume robust mutexes are always available (at least on Linux and *BSD), there is no longer any need to handle stale locks explicitly.
Is there any way to query at runtime if the env uses robust mutexes? (Runtime is required, as we liblmdb is dynamically linked.)