[ticket/12387] Cleanup *_free_result call and remove @ on that call

https://tracker.phpbb.com/browse/PHPBB3-12387

PHPBB3-12387
Which each dbal we can have 2 different query_id: the one used by the driver (see above) and the one used by the cache, which is an md5 hash now (changed by the 4th commit)