Fix recursive mutex locking issue on JRuby when using Sequel::Model(dataset) (Fixes #841)

There's already a model spec for this, which does fail when run
in isolation.  For some reason it passes when you run the model
specs and the core specs together (which the default spec task
does).