Oracle does not support locks in subquery

Issue #166
Merge pull request #187 from jhanggi/oracle_lock_166

Issue #166 Oracle does not support locks in subquery