Code:
zmcontrol stop; zmcontrol start
That will restart all services related to zimbra, but you should really look into solving the issue.
Does your system meet the requirements?
When zimbra "locks up" are there any errors in the logs (/opt/zimbra/log/mailbox.log or /var/log/zimbra.log)?
What is the file limit for your Zimbra user (ulimit -n)?