fix a bug for multi-thread object reference count calculate.