added runtime-check that pooled objects are not used from multiple threads (only in DEBUG mode)