Prevent another prepared stmt leak

When a prepared command is re-prepared, the first
backend statement was not deallocated.

Noticed by @franciscojunior