Remove Java locking layer with pragmas per connection