Added support for the implementating application to know when a resource is (un-)locked. This allows for custom logic based on the lock/unlocking of resources.