Locking when pushing the last messages