Fixed inability to acquire locks