Secure Distributed Computation in the Presence of Dynamic Participation