Allocators and thread safety (and not only)

I gave up, but this post forced me return to the discussion.

Question:

Referenced code from std [Thread] Pool

And an answer

Do you see the problem here?

It’s the same problem, as problem of ThreadSafeAllocator - if allocator is not thread-safe, any wrapping with lock/unlock will not prevent non thread-safe usage.

With my proposal std code can check thread-safety of allocator and return error.

I know that

Compile errors are better than runtime crashes.

But

Runtime crashes are better than bugs.