engine: Make EngineLock AutoClosable

Added AutoClosable capability to the EngineLock class, making it work
with Java 7 syntax of "try with resources".

Change-Id: Ib2f25925481d87a9ea8c73b333eefc0def5eb18a
Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>