Fixed an infinite loop in SQLite's clear_value.

The connection recycling logic has been re-added, since that wasn't actually the issue.