Employees who are fired or laid off sometimes are locked out, but that's a more confrontational situation where the employer might fear retaliation.
Admitted, this was a small company, at a larger company it might have been different because of rigid policies.
When I was employed myself (long long ago, fortunately) I usually ended up with some contract work from my ex employer to help them tide over until they had found a good replacement, in one case this period extended for 6 months.
edit:
+) To be fair, he actually emailed me last year, almost a decade after it happened that he was terribly sorry about what he did, so in the end even with him I'm still in contact of sorts, and I've forgiven him for what he did, he really seems to have learned his lesson.
Would not work somewhere that handled employees leaving that way. Sorry Mr. Calacanis!