Policy Design for Two-sided Platforms with Participation Dynamics