Removed assert from simple lock. Removed use of statement cache which fixed bind issues