Bug 1076032 - Attempting to unlock closed file descriptor

* Add guard to stop attempting to unlock a closed file descriptor
Merge pull request #4952 from jwhonce/bug/1076032

Merged by openshift-bot
add xpaas tag to eap cartridge
Merge pull request #4953 from bparees/eap_to_xpaas

Merged by openshift-bot