Lock delete button in env if ancor env is locked

This commit will lock the environment delete button only if ANCORs
environment is currently locked.