Add PoolGuard class and use typedef for QueueManagerPool