You can't 'lock' their accounts but you can disable the assignment in the course you have set up and then enable it as you wish them to have access. See disable/enable assignment  for more on this and how you can then also control the level of visibility the students have to the project when disabled

Did this answer your question?