d7bbbf2 Ticket #48374 - entry cache locks not released in error conditions

Authored and Committed by nhosoi 8 years ago
    Ticket #48374 - entry cache locks not released in error conditions
    
    Description: Ludwig Krispenz <lkrispen@redhat.com> found 2 missing unlocks
    in the cache.c code.  This patch is created based upon his report.  I also
    scanned the code and did not find further mistakes.
    
    https://fedorahosted.org/389/ticket/48374
    
    Reviewed by nhosoi@redhat.com.