fix for enterprise test failures
checkstyle fixes
empty methods like acquire() passes 1 as default permit value
Merge pull request #3316 from mesutcelik/enterpriseSemaphoreFixes

semaphore fixes for failing Enterprise Tests