Updated contention_is_locked() to use pending_flash_addr