Added hook for handling lock-related enqueue failures