locate: Use C89 function definitions.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39526