Fixes malloc error

Fixes bug caused by using blocks where CLLocationManager would bug out after receiving calls from a background thread.