Retake status file lock if an error caused it to be lost (for WebJobs).

Fixes #1340
yes, _lockedStatusFile is not used by itself, it is only used as a lock for the instance.