As far as I know, you can't lock test or acceptance in the same way that production is locked. You can determine which people on your team have transport rights for those two environments. In the app platform, navigate to permissions for each individual and you will see this selection:
These settings can be changed on the Node Security tab of the Team section of your project.