I have seen those (generally larger, automated versions) in airports, and there is certainly a moment in every transit where the way back is closed and the way forward is not yet open. That same is true of ordinary, two-way, glass-walled revolving doors, to serve their purpose as a temperature airlock. I've never heard anyone worry about either one trapping people.
Its a lot harder to do that from a locked room.