Fix bug 16506: Honor read access given by ACLs (for 7.8)

For this, use "access" instead of stat.