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

For this, use "access" instead of stat.