Simplify lock filename

We don't need any magic in FileLock class, it always gets absolute path.
Use linked repository lock for linked projects

We are locking the underlaying repository and not the resource, so we
need shared lock for linked resources.

Fixes #560

Signed-off-by: Michal Čihař <michal@cihar.com>