Optimize IO::Path.contents default test.

Really, we should make Junction.ACCEPTS faster - or junctions faster
in general - but this helps further reduce the awful slowness of
IO::Path.contents.