Oh, sorry, my previous comment was misleading.  I meant to say, that you do not need *any* quote here, neither `#'` nor `'`.  The former just has no effect, the latter is actually harmful, because it prevents byte compilation of the predicate form.

Just use `(lambda () …)` without any quoting.