test-read-cache: drop namelen variable