fix bugs in the LibpfmSensor (when libpfm is not able to open the fd, an exception occured when the sensor tries to access it from the cache)