Fix bug 16506: Honor read access given by ACLs.

For this, use "access" instead of stat.