log error on failing to get a lock