Make ao_log_data re-entrant as it is used for both sensor and GPS logs