[kibana] [routes] prevent possible race condition