I have created
DB_CONFIG with the lines you suggested. I placed the file in the root of the Bitcoin Data folder.
The same happens.

Lock table is out of available locker entries

It crashes on the 333 wallet. Did I miss anything? what can be done?
EDIT: I have tested both in 0.15.1 and 0.16.0 (main and testnet). The result is the same. 333 is the number of the beast.
Hmm.