fix for statement caching issue described in https://github.com/ccgus/fmdb/issues/6

only use a cached statement if it is not currently associated with a result-set.

automatically associate/disassociate statements/result-sets.

basic test case in fmdb.m