Make metrics disablable.

Beyond uses sigar for metrics, but there is a problem to use sigar
library in production mode. So disable it until fix the problem.

Enabling metrics are determined by `enable-metrics` option.

And this patch disables metrics only for production mode.