[server][ActorCollector] Define a class: ActorCollector::Locker.

We assumes that this class is used with CppReaper so that the lock
is automatically unlocked when the scope ends.