Stub APT:U GetLockHandle.
Fix more compiler warnings.