Provide current NSManagedObjectContext to transform block

* In the case that the transform is not operating on the same thread as the main
managed object context, the current context is provided to avoid operating on a
context from a different thread.