bsg: fix the deadlock on discarding done commands