Automatically create lock file directory.
Automatically create lock file directory.

`FROM scratch` containers don’t contain anything by default, so we need to make sure the directory containing the lock file is created if it doesn’t exist.

Signed-off-by: Markus Reiter <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@reitermark.us>

openfaas-incubator/of-watchdog,openfaas-incubator/of-watchdog