[Git][openldap/openldap][master] ITS#9947 Fix race in epoch.c and simplify