Added lock to saga saving code