Fix to properly log when we release a semaphore

add a try/finally to ensure the LOG.debug is printed
properly. Currently the debug message is never executed

Change-Id: I8611567695c21c929ac6052e480ed733fba97f99
Related-Bug: 1235437