discard """ errormsg: "unguarded access: counter" line: 14 """ import threadpool, locks var counterLock: Lock initLock(counterLock) var counter {.guard: counterLock.} = 0 proc increment(x: int) = for i in 0 ..