Fix statement freeing in the ibmdb adapter

Before, statements were not always freed correctly, leaving it up
to GC to free them.  This could result in a error if all available
handles are used up before GC kicks in.