Fixed a multi-threading bug in rfhaps_cpu