"Timeout waiting to lock artifact cache"

We’ve been running into:

Could not resolve all dependencies for configuration ‘:runtime’.
> Timeout waiting to lock artifact cache (/Users/apath/.gradle/caches/modules-2). It is currently in use by another Gradle instance.
Owner PID: 6399
Our PID: 10863
Owner Operation: resolve configuration ‘:classpath’
Our operation: resolve configuration ‘:runtime’
Lock file: /Users/apath/.gradle/caches/modules-2/modules-2.lock

I came across this closed thread:

However the strange thing is, we’re seeing it on a build that runs sequentially. I know the information here is thin, please let me know what other info I can provide,

hard to tell what’s going wrong here. Do you use the gradle daemon in your local environment where you see this issue?