How to Prevent Race Conditions in a Node.js System Using Mutexes and RabbitMQ