Improved repository locking.

We now rely on fnctl.flock, which is way more reliable, but also
Weblate now requires Unix like system. This is most likely non issue as
there are more assumptions like this in Weblate's code.

Fixes #608

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