Bochum boosted their bid to beat the drop as Erhan Masovic headed the only goal of the game in a setback for RB Leipzig's top-four ambitions.