Handling Potential Race Conditions on the Server

Hello ,

Trying to figure out how to handle potential race conditions when multiple clients call a function on the server. Currently I have a functjon on the game mode which the clients can call to trigger a game mechanic. It has checks on a per client basis and then updates containers with info about the clients. Would using Scoped Locks/Critical Sections be enough to ensure that multiple clients wont be modifying the containers at the same time ?