Tunable optical spin Hall effect in a liquid crystal microcavity