rewrite the implementation for rails 4.0/4.1, much simpler implementation that now catches belongs_to loads and general queries equivalent to simple loads.  use a different option in the test cases as lock is no longer turned into any SQL on sqlite.