Conditions for a Dynkin system to be a sigma-algebra