The option to lock a room exists if it has a maximum number of peers connected, but there is no action that does something like that.
Also, I didn't find an action that would allow me to change the maximum number of peers after creating the room.
Is there any way I can do this without a player connecting to it, receiving data, and only then getting kicked?