Backport #21293 Following https://datatracker.ietf.org/doc/html/rfc8252#section-7.3 Fixes #21285
* Move almost all functions' parameter db.Engine to context.Context * remove some unnecessary wrap functions