libarchive: override ac_cv_func_lchmod detection mostly for musl builds.

The issue is that lchmod() is implemented in musl but returns ENOTSUP
on symlinks and the libarchive returns warnings when extracting files.

Override lchmod detection and simple disable it for musl too
(such as with glibc).