wrapper: add a test for LOCK TABLES and ENABLE KEYS

fixes #1778

Reported by Y.Kentaro. Thanks!!!