ISPN-4651 LevelDB crashes JVM when stop() is called concurrently with write()

https://issues.jboss.org/browse/ISPN-4651
Technically this doesn't need to be volatile since it is only accessed inside semaphore acquire/release block which is guaranteed to have happens before semantics.