Added db locking on deleting a post.