You are correct. Locks keep honest people honest.
Probably something more like: locks marginally aid in diverting lazy / opportunistic thieves.
Curiosity and children.
Like a safe - a lock buys you time, and hopefully the thief chooses a loud method of entry that attracts attention.