Use fcntl(2) for locking, rather than flock(3).  Avoid time(2) call in
table_get() unless we have already matched paths, trying to cut down on
number of system calls in hot paths.