improve buffer pool atomic operation