I think that check is worth doing when possible but not as a replacement. Mostly because it doesn't check that the lock callback actually has mutual exclusion and also because when using the implementation from _ssl we can't inspect the locks.