[API]: Open privileged socket before dropping privileges

Change-Id: Ida061115943fea0995a6a18607aca668668e87c7