Fixing CARBON-14920 - Incorrect usage of ThreadLocal in TenantAwarePatternLayout and incomplete documentation

Related JIRA : https://wso2.org/jira/browse/CARBON-14920