fixed calc_server 100% CPU bug

When the calc_server is compiled with -O2 (optimization) it will
sporadically go to 100% CPU usage and become unresponsive.
When compiled without it is reliable.  The cause of this problem
is not known.  Somehow the -O2 optimizations create problems with
Pthreds.