JBPM-4212: adding getAllTaskAttachmentsByTaskId implementation
BZ-1040198 - Memory leak in a process with timer when run in Java API by using PerProcessInstance session strategy with disabled persistence due to: java.lang.OutOfMemoryError: unable to create new native thread

    (cherry picked from commit 0d5e72a6d3559bf7a7fec7417257112d0ec5ccad)
BZ-1048248 - Task comments fail to load due to lazy loading exception
BZ-1044529 Memory leak from getStatefulKnowledgeSessions
(cherry picked from commit 9645cf09ee90db62b9c181ae79c8a0d65efac856)