Can someone please explain how the rasa lock store works?

I am interested to know how it operates, how and when it chooses to keep a conversation lock and how/when it chooses to delete a conversation lock?

I have two actions in my story that both take a few seconds to complete. The first action returns its response before the conversation lock gets deleted (while rasa calls the action end point).

However, second time round, the conversation lock gets deleted immediately after the action is called.

I’m a little confused by why rasa behaves differently between the two actions…! Anyone got any advice?

Thanks!