lock: fix Windows build

Change-Id: I1bf2552ca138e57217f81bf452ffdb8071596e99