Revise prevention of duplicate OnConsoleStatusListeners

This pulls in upstream/LOGBACK_791 branch, and revises the work done
for LBANDROID-14.