Name the lockfile after the basename of the Berksfile

Fixes #1247