- adding missing EnvironmentName for pessimistic locking(cherry picked from commit 491783a669cd4c1c3e994ae3e806ed77c6152a0e)