Null out lock references to avoid Android bug

https://code.google.com/p/android/issues/detail?id=20318
Catch SecurityException
Added nullable annotation