Append ref to lock file