[TASK] Use lambda functions instead of create_function

Make use of the possibilities of PHP 5.3+ and replace all
instances of create_function with an inlined function call.

Change-Id: I3ebabd56efe5d7e3ee07cffbf1f3bb6b5c85e7ff
Resolves: #51937
Releases: 6.2
Reviewed-on: https://review.typo3.org/23782
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Christoph Dörfel
Reviewed-by: Markus Klein
Tested-by: Markus Klein