Using the STCMD packaged with StarTeam CPC build 22.214.171.124, it is not possible to unlock the StarTeam Server after using the lock command.
The command shows that it has successfully completed (see screenshot below)
However, it is necessary to manually unlock from the StarTeam Server administration console and it is not possible to create scripts to automate the process.
This was a known issue and the STCMD StarTeam Server lock\unlock commands have been fixed in all CPC builds from 126.96.36.199 and above.
Download available from MicroFocus SupportLine (login required).