Added wifi lock for wifi scan