Defocused transmission spectroscopy: a potential detection of sodium in the atmosphere of WASP-12b