s3-mdssvc: add permissions check

Add a permission check with access() to determince whether a user has
actual read permission on a file.

Signed-off-by: Ralph Boehme <rb@sernet.de>