debug ALOGDs around thread locking