locate: Fix build on 4.02