Remove unsafe mIsLocked flag, add last locking thread id for improved debugging.
Remove unsafe mIsLocked flag, add last locking thread id for improved debugging.

trygve-isaacson/code-vault,trygve-isaacson/code-vault,trygve-isaacson/code-vault,trygve-isaacson/code-vault