Locks are an invitation to theft. They are a signal to anyone who has access to the bag at departure, connection and arrival that you have something of value in the bag.
Use a tie if you are concerned about the bag popping open. If you aren't concerned about that, don't bother locking at all.