Lock lubricants are rarely toxic, but they can create surfaces that lock dirt and rust on metal surfaces.
Utilizing a proper lubricant on locks will keep the surrounding surface of the mechanism from oxidizing and corroding.