lockdev: fix linking