Oscillating magnetocaloric effect in quantum nanoribbons