1. A method, comprising: receiving by a first application an input from a user; performing a service by a second application on the input received by the first application; obtaining a log of all data locks set by the second application while performing the service, wherein the log indicates a data lock object and a data lock argument for each data lock set by the second application; and setting a generic lock having an associated generic lock object and a generic lock argument, wherein the generic lock argument indicates the data lock object and the data lock argument of at least one data lock set by the second application.