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

https://issues.jboss.org/browse/ISPN-4651
@tristantarrant Sorry, I've missed the final point: hide the semaphore use in methods or not?