Merge "Only log an error if an unattached thread is unregistered." into lmp-dev