Do you get the same error with the Debian container? I’ve no ideas. /var/lock is a system OS folder. I’m not seeing this write but I’m running Debian.
In a pinch you can mount a volume or, if the error occurs late enough mount a script to run before OH does (see the docs). to create that folder. But those are work arounds at best and I suspect the later won’t work anyway.
Ultimately an issue will need to be filled but I’m not sure there’s enough info here to file it.