store svn ref in lockfile (fixes #3080)