State events canceled as Thais pray for king's recovery