MI5 director hopeful about 'stalemate' on Olympic security