iPhone's lock sound is the click you hear when you lock or unlock the screen by pressing the right side button. When the lock sound is turned off, locking or unlocking the screen won't make a sound. Simply open Settings > Sounds/Sounds & Haptics and disable the Lock Sound.