make stmtCacher thread-safe

Go maps aren't thread safe, adding a mutex to guard the map
Merge pull request #6 from recadra/master

Make stmtCacher thread-safe