Disable perflock & Fix build when disabled