Causality in AdS/CFT and Lovelock theory