Rename lock.h to platform.h