Applied DFT fixes for OpenCL on CPU devices

* Account for local memory allocation in local thread size determination
* Force barrier sync for local memory operations in DFT kernel