Fix opt-lambda property on opt-lambda methods

Related to PR 14726