Re-adding fix to keep bg task running

Re-adding bit to tell the OS we are doing a bg task that needs to run to completion. Otherwise, we may never actually save or send locations gathered in the background.