Disable threads completely if OpenMP is not present. This reduces the penalty paid by Mutex lock and unlock operations in single threaded mode. Change-Id: I185380bde73fe87e901fc434d152d6c366ff1d5d