An off-duty police officer is in a serious condition after being punched and repeatedly kicked in the head on a popular precinct in Sydney's inner west.