Minor update to DatabaseContentProvider
Fixed a bug in InboxActivity where we sometimes failed to detect that the database was locked
Big update to LockScreenActivity, fixed a couple of bugs