I haven't looked at this code in a while but as I recall I thought you had to set the initial code on each. I most certainly could be wrong. I can peek at the code later tonight.
ResetCodeLocks
Simple Plugin that allows players to reset the code lock (guest/main) on all their locks
Total Downloads: 601 - First Release: Feb 23, 2017 - Last Update: Jul 7, 2017