Use memory pool mechanism to close temporary tables

It requires unreleased rroonga.