fix a threadsafe issue
add a comment for teminate method
c-ruby support: make threads set thread safe; rename default_callback to output_handler
change to initialize all options including output handler when initializing the sampling prof obj, instead of having __start__ method to take a block as output handler
make output interval as standalone option, controls the interval of calling output handler; only call output handler when output interval is nil