Database is locked. What is the reason? What is the possible solution?

It could be an option. Depending on how the node is written, adding another DBMS could be easy (or not).
Redis would be a bit more difficult to add, but probably would perform faster.