Actually use the cleaned closure in foreachPartition

https://groups.google.com/forum/?fromgroups=#!topic/spark-developers/fhj6JUzJny4