[FaceRest] Use AtomicValue for refCount of ResourceHandler to simplify the code

github issue #237