add lock|unlock to preg_match function within query function for mysqli and mysql
Merge pull request #59 from jamesibiza/master

add lock|unlock to preg_match function within query function for mysqli/mysql