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 where it is set to false. 

Now, it is always persisted (=> cells can be locked + unlocked).