[PATCH 4.4 25/92] futex: Remove duplicated code and fix undefined behaviour