Fix lock_s local param unintialization bug