Beyond the Lindblad master equation: Heat, work, and energy currents in boundary-driven spin chains.