No, you cannot sue unless you can show that an employee deliberately locked you in for some reason. You can't sue for purely emotional (no physical harm done) injury which occurs due to neglience or inadvertance--e.g. someone locking you in because they turned the lock by mistake or thinking no one was in there. You can only recover for purely emotional/mental harm when someone acted in an intentionally wrongful fashion.