Thai court grants bail to four protest leaders