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).
Merge pull request #34 from philrykoff/master

Fix for not being able to unlock cell.