Serbia sealed a fifth-placed finish at the FIBA World Cup after a 90-81 victory over the Czech Republic.