Improve ActiveRecord connection-sharing advice

The current advice causes "This connection is still waiting" errors when both threads try to use the connection at the same time. I've been using this improved monkey-patch (by @mperham) for a while with no problems.

See: https://github.com/brianmario/mysql2/issues/99
And: https://gist.github.com/mperham/3049152