Turkey to release 38,000 jailed for pre-coup crimes