Add 'static bounds to path finding closures

rustc 0.13.0-nightly (c46812f65 2014-10-19 00:47:18 +0000) was failing when they
weren't there.