More than 40,000 remanded in custody since coup bid