SPPoolObject modifications

optionally threadsafe, no longer requires subclasses to implement the
SP_IMPLEMENT_MEMORY_POOL() macro, uses a static hash table of queues
instead