Make lock state change detection a bit more robust; report if lock seems to be in an indeterminate state