Thailand lifts emergency measures aimed at stopping protests