Fix missing unlocks in error cases!

Also, glist_entry() returned pointer should never be NULL, so checking
it is pointless!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>