Optimal Risk Allocation in a Market with Non-Convex Preferences