Handle race on session_id messaging vs timeout

Also moved the {missing_ets_data, ...} to the initial position in both receives for consistency and readability.