Mozambique needs to restructure its defence force and build an alliance with its neighbour Tanzania in preparation for a drawn-out struggle against ‘jihadists’