Fix race condition in concurrent deposit | xAI