[libqb] [PATCH 1/2] hash: improve the error handling in key_set()