WD-40 should not be used on door locks because it is a petroleum-based lubricant that can attract dirt and grime, causing the lock to become sticky and ineffective over time. It is better to use graphite powder or a silicone-based lubricant for locks.