use of mysql lock when updating the pull_posts table