Can the use of the Leggett–Garg inequality enhance security of the BB84 protocol?