fix spurious report of passing a lock (embedded in the struct value) by value