The Koszul property for spaces of quadrics of codimension three