fix error-path NULL deref in alloc_posix_timer()