Musk called his problem ‘delivery logistics hell.’ What your company can do to avoid the same fate.