Add failing test for issue gh-6009
Use shell futures environment for code in %time and %timeit

Closes gh-6009
Merge pull request #6010 from takluyver/i6009

Use shell futures environment for code in %time and %timeit