Revert "Do not use redis lock in the backend."

This reverts commit 1dfd87944cd298d4c2724cef4738195f1bfcfd7c.