France handed over its last military base in Chad to local authorities as African nations have grown closer to Moscow.