Coverity - Dealock in firebird