Fix for not being able to unlock cell.

Since the last commit to this file, the locked attribute was only persisted when it was set to true, thus we are not able to unlock cells. Now, it is also persisted if false (=> cells can be unlocked).