Loading
Add thread to check for lock contention.
Using the foreground thread will block the foreground thread when there is lock contention. Some of the lock checks are guarding code which is writing to disk for instance. Test: manual Change-Id: I431c5c34984c7f58cfe4f4127071521811edefb8