Thailand invokes security act amid planned protests