Added resource parameter to the release method of locker interface