Turkey 'frees 36,000 prisoners' under judicial control