adding reference count to pools

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
optimizing calls to module

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>