Thalamocortical contribution to solving credit assignment in neural systems