arjdbc: performance improvement in setup_jndi_factory

Implement JdbcConnectionFactory using the class & mixin pattern
instead of using a block.

See also https://github.com/jruby/jruby/issues/1401

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>