From Conflict to Mutual Compatibility: The Relationship between Traditional Sheyi (社邑) and Buddhism in Medieval China