X-Rays from NGC 3256: High-Energy Emission in Starburst Galaxies and Their Contribution to the Cosmic X-Ray Background