Walmart is one of several retail chains in recent years that has taken a hard look at how it combats theft. While some stores hired extra security, Walmart instead started locking items inside cases.