Added check for locked state of factoid before allowing it to be updated.