Hotfix: thread locking

git-svn-id: https://plugins.svn.wordpress.org/regular-board/trunk@894659 b8457f37-d9ea-0310-8a92-e5e31aec5664
* 1.13.8.2  esc_sql replaces mysql_real_escape_string.  test up to version update.

git-svn-id: https://plugins.svn.wordpress.org/regular-board/trunk@895333 b8457f37-d9ea-0310-8a92-e5e31aec5664