remove unused check_lockfile code

Signed-off-by: Andrey Skvortsov <Andrej.Skvortzov@gmail.com>