--- old-bdb/src/mutex/mut_method.c	2011-10-25 14:39:35.000000000 -0600
+++ new-bdb/src/mutex/mut_method.c	2018-06-01 20:04:05.000000000 -0600
@@ -428,7 +428,7 @@
 	MUTEX_LOCK(env, mtx);
 	ret = atomic_read(v) == oldval;
 	if (ret)
-		atomic_init(v, newval);
+		atomic_init_db(v, newval);
 	MUTEX_UNLOCK(env, mtx);
 
 	return (ret);
