lockdev: fix cross build.