Fix App tests intermittent #start_and_stop_app failures.

Sleep to allow `App` time to start. Also rename to `app_thread` for
consistency.