provision/docker: cont. healing try acquiring lock before storing event

This prevents multiple unsuccessful lock events being stored when we
have multiple api servers.
We also do a sanity check to verify if the container still exists after
we acquire the lock.