Helper function that will suspend until a location is found, or until the coroutine scope is no longer active.